import {FormItemProps} from "antd";
import {ProFormFieldItemProps} from "@ant-design/pro-form/lib/interface";
import {ProFormSelectProps} from "@ant-design/pro-form/lib/components/Select";


declare const type: ["text", "select", "check", "switch", "dateTime", "upload", "quill"];
export type FormItemType = typeof type[number];


// @ts-ignore
export interface CFormItemProps<T> extends FormItemProps, ProFormFieldItemProps, ProFormSelectProps {
  type?: FormItemType,
  componentProps?: T,
  Component?: any,
}


export interface CFormGroupProps<T> {
  itemList: CFormItemProps<any>[]
}
